<?php
namespace app\index\controller;
use x\Xbase;
use x\Container;
use x\G;
class Base extends Xbase{
    public $web_site_id = 0;
    public $com = [];
    public $sys = [];
    public function __construct(){
        parent::__construct();
        clear_cookie_arr('js');
        $this->_sys();
    }

    //通用
    public function _sys(){
        $this->web_site_id = G::$web_site_id;
        $rs1 = $this->db->query("select * from admin_user where website_id=?",[$this->web_site_id],1);
        $rs2 = $this->db->query("select * from word where website_id=?",[$this->web_site_id],1);
        $this->com = array_merge($rs1,$rs2);
        $this->assign('com',$this->com);
        $this->assign('m',$this->m);
        $this->assign('c',$this->c);
        $this->assign('a',$this->a);
    }
}
